<div></div>
<p>Freewallet includes an Automatic Donation System (ADS) to support continued hosting and development of FreeWallet and Tokenscan.io projects.</p>
<p>You need to be aware of the following :
<ul>
    <li>ADS is <u><b>enabled by default</b></u> on all transactions</li>
    <li>ADS settings can be edited at Settings->Preferences</li>
    <li>ADS can configured to donate on % of transactions</li>
    <li>ADS donation amount can be configured (default: 1,000 sats)</li>
    <li>ADS donation cause can be configured (default: FreeWallet)</li>
    <li>ADS can be disabled entirely</li>
    <li>You <u><b>DO NOT</b></u> need to donate in order to use this wallet</li>
</ul>

<div class="checkbox" id="dialog-donate-agreement-confirm"><label><input type="checkbox" id="dialog-donate-agreement-checkbox"> I have <u><i><b>read and understand</b></i></u> the above about the Automatic Donation System (ADS).</label></div>

<script>
$(document).ready(function(){

    // Define donation address
    var address = 'bc1qd0nateja8l9am8tqpzjn9uazhf6dlp9qer2tra',
        debug   = $('#btn-debug'),
        update  = $('#btn-update'),
        version = (is_nwjs()) ? 'Version ' + nw.App.manifest.version : 'Development Build';

    // Display current version number
    $('#fw_version').html(version);

    // Handle showing/hiding the debug button
    if(is_nwjs()){
        debug.click($.debounce(100,function(e){
            nw.Window.get().showDevTools();
        }));
        update.click($.debounce(100,function(e){
            checkWalletUpgrade(version, true);
        }));
    }

    // When a user clicks the donate now button, save bounty address and launch 'Send Funds' window
    $('#btn-donate').click($.debounce(100, function(e){
        FW.DIALOG_DATA = {
            destination: address,
            token: 'BTC'
        };
        dialogSend();
        dialogClose('dialog-donate');
    }));

    // When a user clicks the donate now button, save bounty address and launch 'Send Funds' window
    $('#btn-buy').click($.debounce(100, function(e){
        FW.DIALOG_DATA = {
            token: 'FULLACCESS'
        };
        loadPage('dispensers');
        dialogClose('dialog-donate');
    }));


    // Hide the send form if users clicks 'cancel' button
    $('#btn-ok').click($.debounce(100,function(e){
        dialogClose('dialog-donate');
    }));

});
</script>